import request from '@/utils/request'

export function getAreaList(params) {
  return request({
    url: '/getAreas',
    method: 'get',
    params
  })
}

export function deleteArea(area_id) {
  return request({
    url: `/deleteArea/${area_id}`,
    method: 'delete'
  })
}

export function addArea(data) {
  return request({
    url: '/addArea',
    method: 'post',
    data
  })
}
